package com.zhiyou.service.impl;

import com.zhiyou.dao.RentDao;
import com.zhiyou.model.Rent;
import com.zhiyou.service.RentService;

import java.util.HashMap;
import java.util.List;

public class RentServiceImpl implements RentService {
    private RentDao r = new RentDao();
    @Override
    public int getRentNum(HashMap<String,String> keywordMap) {
        return r.getRentNum(keywordMap);
    }

    @Override
    public List<Rent> getRent(int pageNo, int pageSize,HashMap<String,String> keywordMap) {
        return r.getRent(pageNo,pageSize,keywordMap);
    }

    @Override
    public void deleteById(int rid) {
        r.deleteById(rid);
    }

    @Override
    public void addNew(Rent rent) {
        r.addNew(rent);
    }

    @Override
    public Rent selectById(int rid) {
        return r.selectById(rid);
    }

    @Override
    public void updateNew(Rent rent) {
        r.updateNew(rent);
    }
}
